package com.tarena.dubbo.stock.web.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class StockService {
    //核心功能 减库存
    public boolean reduceStock(String productId, int count){
        log.info("减库存，商品ID：{},数量：{}",productId,count);
        return true;
    }

    public boolean returnStock(String productId, int count) {
        log.info("当前商品:{},归还了库存:{}",productId,count);
        return true;
    }
}
